#include <vector>
#include "mpreal.h"


// For invsqrt function
extern mpfr::mpreal invsqrt_func(mpfr::mpreal x);

extern mpfr::mpreal invsqrt_error_derivative(const std::vector<mpfr::mpreal> &coeffs, mpfr::mpreal x0,  int degree) ;
extern mpfr::mpreal invsqrt_get_error_at_x( const std::vector<mpfr::mpreal> &coeffs, mpfr::mpreal x, int degree) ;


